package com.sjyang.jedis;

//import redis.clients.jedis.Jedis;

/**
 * @author saijun.yang
 * @date 2022/3/10 19:11
 * @description jedis客户端
 */
public class JedisClient {
    public static void main(String[] args) {
        //创建连接
        //Jedis jedis = new Jedis("121.41.179.211",6379);
        //jedis.ping();
        //设置值并获取值
        //jedis.set("sjyangKey","杨赛军设置的第一个key");
        //System.out.println(jedis.get("sjyangKey"));
        //关闭连接
        //jedis.close();
    }
}
